package apifm

import (
	"context"

	// "mall/common/jwt"
	// resultx "mall/common/result"
	// "mall/common/utils/pointy"
	"mall/service/forum/api/internal/svc"
	"mall/service/forum/api/internal/types"
	// "mall/service/user/rpc/userclient"

	"github.com/zeromicro/go-zero/core/logx"
)

type GetCmsCategoryListLogic struct {
	logx.Logger
	ctx    context.Context
	svcCtx *svc.ServiceContext
}

func NewGetCmsCategoryListLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetCmsCategoryListLogic {
	return &GetCmsCategoryListLogic{
		Logger: logx.WithContext(ctx),
		ctx:    ctx,
		svcCtx: svcCtx,
	}
}

func (l *GetCmsCategoryListLogic) GetCmsCategoryList(
	req *types.GetCmsCategoryListReq,
	headers *[]*types.Header,
) (resp *types.CmsCategoryListResp, err error) {
	// userId := jwt.GetUserId(l.ctx)

	resp = &types.CmsCategoryListResp{
		BaseListInfo: types.BaseListInfo{
			Current:         uint64(1),
			PageSize:        uint64(10),
			HasNextPage:     false,
			HasPreviousPage: false,
		},
	}

	return resp, nil
}
